package demo2;

public class test {
    public static void main(String[] args) {
        Phone o = new OldPhone();
        o.call();
        o.sendMessage();

        Phone n = new NewPhone();
        n.call();
        n.sendMessage();
        ((NewPhone)n).playGame();

    }
}
